package cn.jjxx.modules.sys.service.impl;

import java.util.List;
import cn.jjxx.core.common.service.impl.CommonServiceImpl;
import cn.jjxx.modules.sys.mapper.BillRuleDetailMapper;
import cn.jjxx.modules.sys.entity.BillRuleDetail;
import cn.jjxx.modules.sys.service.IBillRuleDetailService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**   
 * @Title: 单号规则明细
 * @Description: 单号规则明细
 * @author zcg
 * @date 2018-08-09 14:01:25
 * @version V1.0   
 *
 */
@Transactional
@Service("billRuleDetailService")
public class BillRuleDetailServiceImpl  extends CommonServiceImpl<BillRuleDetailMapper,BillRuleDetail> implements  IBillRuleDetailService {

	@Override
	public boolean insertBatch(List<BillRuleDetail> list) {
		if(list!=null&&list.size()>0){
			return baseMapper.insertBatch(list);
		}
		return true;
	}

	@Override
	public boolean updateBatch(List<BillRuleDetail> list) {
		if(list!=null&&list.size()>0){
			return baseMapper.updateBatch(list);
		}
		return true;
	}
}
